package com.ganwei.mybatisplus.config;

import java.text.SimpleDateFormat;
import java.util.Date;

public class getOrderCode {

    private static int count = 0;

    public String getOrderCode(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
        return dateFormat.format(new Date())+"-"+ ++count;
    }


}
